<?php
namespace Systemht\Model;
use Think\Model;
class PictCateModel extends Model{
	protected $insertField = array('name',);
	protected $updateField = array('id','name');
	protected $_validate = array(
		array('name','require','分类名称不能为空'),
		);
	protected function _before_insert(&$data,$option){
		$data['ctime'] = time();
	}
}